  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">

        </div>
        <div class="pull-left info">          
        </div>
      </div>
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu" data-widget="tree">
        @foreach($menus as $menu)
          @if($menu['child'] == '')
        <li class="treeview">
          <a href="{{ url('$menu[url]') }}">
            <i class="{{ $menu['icon'] }}"></i> <span>{{ $menu['name'] }}</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
        </li>
          @else
        <li class="treeview">
          <a href="#">
            <i class="{{ $menu['icon'] }}"></i> <span>{{ $menu['name'] }}</span>
            <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
          </a>
          <ul class="treeview-menu">
            @foreach($menu['child'] as $child)
            <li class="active"><a href="{{ url($child -> url) }}"><i class="fa fa-circle-o"></i> {{ $child -> name }}</a></li>
            @endforeach
          </ul>
        </li>
          @endif
         @endforeach
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>
